package com.hk.model.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author: aerfazhe
 * @Date: 2021/7/26 9:33
 * @Statement: 登录字段
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class LoginAdmin {

    private Integer id;
    private String name;
    private String email;
    private String password;
    @ApiModelProperty("权限集合")
    List<String> authorities;

    @ApiModelProperty("登录日志Id，该字段主要用于记录退出时间条件标识使用")
    private Integer loginLogId;

    public LoginAdmin(Integer id, String name, String email, String password, List<String> authorities) {
        this.id = id;
        this.name = name;
        this.email = email;
        this.password = password;
        this.authorities = authorities;
    }

}
